python join generators

51

python join generators -

from itertools import chain
generator = chain('ABC', 'DEF')

for item in generator:
    print(item)

Comments

Submit
0 Comments